package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.BackUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FrontreportMapper;
import com.ruoyi.system.domain.Frontreport;
import com.ruoyi.system.service.IFrontreportService;

/**
 * frontreportService业务层处理
 * 
 * @author lbb
 * @date 2022-10-04
 */
@Service
public class FrontreportServiceImpl implements IFrontreportService 
{
    @Autowired
    private FrontreportMapper frontreportMapper;

    /**
     * 查询frontreport
     * 
     * @param reportid frontreport主键
     * @return frontreport
     */
    @Override
    public Frontreport selectFrontreportByReportid(Long reportid)
    {
        return frontreportMapper.selectFrontreportByReportid(reportid);
    }

    /**
     * 查询frontreport列表
     * 
     * @param frontreport frontreport
     * @return frontreport
     */
    @Override
    public List<Frontreport> selectFrontreportList(Frontreport frontreport)
    {
        return frontreportMapper.selectFrontreportList(frontreport);
    }

    /**
     * 新增frontreport
     * 
     * @param frontreport frontreport
     * @return 结果
     */
    @Override
    public int insertFrontreport(Frontreport frontreport)
    {
        return frontreportMapper.insertFrontreport(frontreport);
    }

    /**
     * 修改frontreport
     * 
     * @param frontreport frontreport
     * @return 结果
     */
    @Override
    public int updateFrontreport(Frontreport frontreport)
    {
        return frontreportMapper.updateFrontreport(frontreport);
    }

    @Override
    public int updateSysUser(BackUser backUser) {
        return frontreportMapper.updateSysUser(backUser);
    }

    /**
     * 批量删除frontreport
     * 
     * @param reportids 需要删除的frontreport主键
     * @return 结果
     */
    @Override
    public int deleteFrontreportByReportids(Long[] reportids)
    {
        return frontreportMapper.deleteFrontreportByReportids(reportids);
    }

    /**
     * 删除frontreport信息
     * 
     * @param reportid frontreport主键
     * @return 结果
     */
    @Override
    public int deleteFrontreportByReportid(Long reportid)
    {
        return frontreportMapper.deleteFrontreportByReportid(reportid);
    }
}
